package com.info.zhiduoduo.repository.entity.invoice;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 购买方信息表
 */
@Data
@Accessors(chain = true)
@TableName("zdd_purchase_information")
public class PurchaseInformation extends Model<PurchaseInformation> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "purchaser_id", type = IdType.AUTO)
    private Integer purchaserId;

    @ApiModelProperty("购买方名称")
    @TableField("purchaser_name")
    private String purchaserName;

    @ApiModelProperty("税号")
    @TableField("duty_paragraph")
    private String dutyParagraph;

    @ApiModelProperty("银行信息")
    @TableField("bank_information")
    private String bankInformation;

    @ApiModelProperty("创建时间")
    @TableField("createtime")
    private Date createtime;

    @ApiModelProperty("修改时间")
    @TableField("updatetime")
    private Date updatetime;

    @ApiModelProperty("是否删除 0否 1是")
    @TableField("is_delete")
    private Integer isDelete;

    @Override
    protected Serializable pkVal() {
        return this.purchaserId;
    }

}
